﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.YWDF
{
    /// <summary>
    /// 业务订房酒店信息
    /// </summary>
    [Serializable]
    public class ywdf_hotel
    {
        #region 数据表名称
        public static readonly string TableName = "ywdf_hotel";
        #endregion

        #region 数据表字段结构
        public struct Columns
        {
            /// <summary>
            /// id
            /// </summary>
            public static readonly string id = @"id";

            /// <summary>
            /// 酒店名称
            /// </summary>
            public static readonly string hotel_name = @"hotel_name";

            /// <summary>
            /// 酒店地址
            /// </summary>
            public static readonly string hotel_adr = @"hotel_adr";

            /// <summary>
            /// 酒店联系电话
            /// </summary>
            public static readonly string hotel_tel = @"hotel_tel";

            /// <summary>
            /// 排序标志
            /// </summary>
            public static readonly string order_flag = @"order_flag";

            /// <summary>
            /// 是否有效标志
            /// </summary>
            public static readonly string is_valid = @"is_valid";

            /// <summary>
            /// 创建时间
            /// </summary>
            public static readonly string create_date = @"create_date";
        }
        #endregion

        #region 字段
        /// <summary>
        /// 记录ID
        /// </summary>
        public virtual string id { get; set; }

        /// <summary>
        /// 酒店名称
        /// </summary>
        public virtual string hotel_name { get; set; }

        /// <summary>
        /// 酒店地址
        /// </summary>
        public virtual string hotel_adr { get; set; }

        /// <summary>
        /// 酒店联系电话
        /// </summary>
        public virtual string hotel_tel { get; set; }

        /// <summary>
        /// 排序标志
        /// </summary>
        public virtual int order_flag { get; set; }

        /// <summary>
        /// 酒店房间
        /// </summary>
        public virtual IList<ywdf_room> hotel_rooms { get; set; }

        /// <summary>
        /// 是否有效
        /// </summary>
        public virtual int is_valid { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime create_date { get; set; }
        #endregion

        public ywdf_hotel()
        {
            hotel_rooms = new List<ywdf_room>();
        }
    }
}

